package com.erp.order.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 店铺不自动化管理商品sku业务对象 erp_seller_store_notauto_product_sku
 *
 * @author erp
 * @date 2024-02-26
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpSellerStoreNotautoProductSkuBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 店铺id
     */
    @NotNull(message = "店铺id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long storeId;

    /**
     * 店铺cn码
     */
    @NotBlank(message = "店铺cn码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String storeAlias;

    /**
     * skucode
     */
    @NotBlank(message = "skucode不能为空", groups = { AddGroup.class, EditGroup.class })
    private String skuCode;

    /**
     * 乐观锁
     */
    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;


}
